import { createPersistedState } from 'pinia-plugin-persistedstate'

const Pinia = createPinia()

Pinia.use(
	createPersistedState({
		storage: localStorage,
		auto: true,
		key: id => import.meta.env.VITE_CACHE_PRE + id
	})
)

export default Pinia
